package com.fastloan.jn.common;

import com.kawins.base.BaseMapper;
import com.kawins.base.BaseService;
import com.kawins.base.baseabs.BaseModel;
import com.kawins.base.baseabs.BaseServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * @author chenkai
 *         createTime 2017-10-2017/10/16 20:33
 */
public class BasicServiceImpl<T extends BaseModel<String>> extends BaseServiceImpl<T> implements BaseService<T>{

    @Autowired
    private BaseMapper<T> baseDao;

    @Override
    protected BaseMapper<T> buildDao() {
        return baseDao;
    }

    @Override
    protected Logger buildLogger() {
        return LoggerFactory.getLogger(this.getClass());
    }
}
